<div class="{if $cat[styleid]==1}sangtac_box{else}other_box{/if} cl">
    <div class="box_title">
        	 <!--{eval $caturl = !empty($cat['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$cat['domain'].'.'.$_G['setting']['domain']['root']['forum'] : '';
             }-->
             <!--{if $cat[icon]}-->
                <!--{eval $valueparse = parse_url($cat['icon']);}-->
                <!--{if !isset($valueparse['host'])}-->
                	<!--{eval $cat[icon] = $_G['setting']['attachurl'].'common/'.$cat[icon].'?'.random(6);}-->
                <!--{/if}-->
             <!--{else}-->
             	<!--{eval $cat[icon] = IMGDIR . "/icon_forum_default.png";}-->
             <!--{/if}-->
             
        <div class="left_title"><img src="{$cat[icon]}" width="28" height="26"/><span><a href="{if !empty($caturl)}$caturl{else}forum.php?name={echo locdau($cat[name]);}&gid=$cat[fid]{/if}" style="{if $cat[extra][namecolor]}color: {$cat[extra][namecolor]};{/if}"><h2>$cat[name]</h2></a></span></div><!--End left_title-->
        <div class="right_title">
            <ul>
                <!--{loop $cat[forums] $forumid}-->
                <!--{eval $forum=$forumlist[$forumid];}-->
                <!--{eval $forumurl = !empty($forum['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 
                'http://'.$forum['domain'].'.'.$_G['setting']['domain']['root']['forum'] : 'forum.php?mod=forumdisplay&fid='.$forum['fid'];}-->
                <li><a href="$forumurl"{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if} onmouseover="showthis($cat[fid],$forumid)"><h3>$forum[name]</h3>
                        <!--{if $forum[todayposts] && !$forum['redirect']}-->
                        <em class="xw0 xi1 x-add"  style="display:none;">(<strong>$forum[todayposts]</strong>)</em>
                        <!--{/if}-->
                        </a></li>
                 <!--{/loop}-->
            </ul>
        </div><!--End right_title-->
    </div><!--End box_title-->
    <div class="wrap_item cl">
    <!--{eval $n = 0;}-->
    	<!--{loop $listpost_wforum[$keycat] $key $list_b}-->
        <!--{eval $n++}-->
        <!--{if $n == 1}-->
        <div class="left_box_item">
            <div class="news_item">
                <a href="forum.php?mod=viewthread&tid=$list_b[tid]" title="$list_b[subject]" >
                <!--{if $list_b['picatt']}-->
                    <!--{eval $keypic = rawurlencode(md5($list_b['tid'].'|100|100'))}-->
                    <img src="forum.php?mod=image&aid=$list_b['picatt']&size=100x100&key=$keypic&atid=$list_b['tid']"  alt="$list_b[subject]" title="$list_b[subject]"  alt="$list_b[subject]" title="$list_b[subject]" />
                <!--{elseif $list_b['picurl']}-->    
                    <img src="$list_b['picurl']"  alt="$list_b[subject]" title="$list_b[subject]" />
               	<!--{else}-->
                    <!--{if $list_b['author']}-->
                        <!--{avatar($list_b[authorid],big)}-->
                    <!--{else}-->
                    <img src="{IMGDIR}/frame_avatar.gif" alt="$_G[setting][anonymoustext]" title="$_G[setting][anonymoustext]" />
                    <!--{/if}-->
                <!--{/if}-->
                </a><!-- IMG Topic-->
                <div>
                    <a href="forum.php?mod=viewthread&tid=$list_b[tid]" class="xi2" $list_b[highlight] title="$list_b[subject]">{if $cat[icon]}<img src="{$cat[icon]}" width="10" height="10"/>{else}<img src="{IMGDIR}/icon_forum_default.png" width="10" height="10"/>{/if}<h3>$list_b[subject]</h3></a>								
                        <!--{if $list_b['weeknew']}-->
                        <img src="{IMGDIR}/new.gif" title="$list_b[subject]" width="22" height="7" alt="New" />
                        <!--{/if}-->
                        <!--{if $list_b[icon] >= 0}-->
                        <img src="{STATICURL}image/stamp/{$_G[cache][stamps][$list_b[icon]][url]}" alt="{$_G[cache][stamps][$list_b[icon]][text]}" align="absmiddle" />
                        <!--{/if}-->
                        <!--{if $list_b['attachment'] == 2}-->
                        <img src="{STATICURL}image/filetype/image_s.gif" alt="attach_img" title="{lang attach_img}" align="absmiddle" />
                        <!--{elseif $list_b['attachment'] == 1}-->
                        <img src="{STATICURL}image/filetype/common.gif" alt="attachment" title="{lang attachment}" align="absmiddle" />
                        <!--{/if}-->
                        <!--{if $list_b['digest'] > 0 && $list_b != 'digest'}-->
                        <img src="{IMGDIR}/digest_$list_b[digest].gif" align="absmiddle" alt="digest" title="{lang thread_digest} $list_b[digest]" />
                        <!--{/if}-->
                        <!--{if $list_b['displayorder'] == 0}-->
                        <!--{if $list_b[recommendicon] && $filter != 'recommend'}-->
                        <img src="{IMGDIR}/recommend_$list_b[recommendicon].gif" align="absmiddle" alt="recommend" title="{lang thread_recommend} $list_b[recommends]" />
                        <!--{/if}-->
                        <!--{if $list_b[heatlevel]}-->
                        <img src="{IMGDIR}/hot_$list_b[heatlevel].gif" align="absmiddle" alt="heatlevel" title="$list_b[heatlevel] {lang heats}" />
                        <!--{/if}-->
                        <!--{if $list_b['rate'] > 0}-->
                        <img src="{IMGDIR}/agree.gif" align="absmiddle" alt="agree" title="{lang rate_credit_add}" />
                        <!--{elseif $list_b['rate'] < 0}-->
                        <img src="{IMGDIR}/disagree.gif" align="absmiddle" alt="disagree" title="{lang posts_deducted}" />
                        <!--{/if}-->
                        <!--{/if}--> 
                </div>
                <div class="author_infor">
                    <img src="{IMGDIR}/i-4.png"  width="10" height="10" align="absmiddle"/>
                    <!--{if $list_b['author']}-->
                        <a href="home.php?mod=space&username=$list_b['author']" class="no_bold xg1" title="{if $list_b['author']}$list_b['author']{else}$_G[setting][anonymoustext]{/if}" c="1">$list_b['author']</a>
                    <!--{else}-->
                        $_G[setting][anonymoustext]
                    <!--{/if}-->
                    <img src="{IMGDIR}/date.png" width="10" height="10" align="absmiddle"/>
                    <i class="no_bold xg1">{$list_b['dateline']}</i>              
                </div><!--End author_infor-->
                <p class="text_message">{$list_b['message']}</p>
                <div class="viewer_comment_infor">
                    <span>
                        <img src="{IMGDIR}/i-3.png" width="16" height="10" align="absmiddle"/>
                        $list_b[views] {lang number_view}
                        <img src="{IMGDIR}/i-2.png" width="10" height="11" align="absmiddle"/>
                        $list_b[replies] {lang number_comment}
                        <!--{if $list_b[replies]}-->
                        -
                            <!--{if $list_b['lastposter']}-->
                                <img src="{IMGDIR}/i-4.png"  width="10" height="10" align="absmiddle" title="{lang number_comment}"/> <a href="{if $list_b[digest] != -2}home.php?mod=space&username=$list_b[lastposter]{else}forum.php?mod=viewthread&tid=$list_b[tid]&page={echo max(1, $list_b[pages]);}{/if}" c="1" class="no_bold xg1">$list_b[lastposter]</a>
                            <!--{else}-->
                                $_G[setting][anonymoustext]
                            <!--{/if}-->
                            <img src="{IMGDIR}/date.png" width="10" height="10"/> $list_b[lastpost]
                    	<!--{/if}-->
                    </span>
                </div><!--End viewer_comment_infor-->
            </div><!--End news_item-->
            <!--{if count($listpost_wforum[$keycat]) > 4}-->
            <div class="news_refer_item cl">
                <ul class="cl">
                <!--{eval $wn = 0}-->
                	<!--{loop $listpost_wforum[$keycat] $key $list_b}-->
                    <!--{if $wn > 4}-->
                    <li><a href="forum.php?mod=viewthread&tid=$list_b[tid]" class="xi2 no_bold" $list_b[highlight] title="$list_b[subject]">{if $cat[icon]}<img src="{$cat[icon]}" width="10" height="10"/>{else}<img src="{IMGDIR}/icon_forum_default.png" width="10" height="10"/>{/if}<h4>{eval echo(messagecutstr($list_b['subject'], 65));}</h4></a><span class="y"><!--{if $list_b['author']}-->
                        <a href="home.php?mod=space&username=$list_b['author']" class="xg1 no_bold" title="{if $list_b['author']}$list_b['author']{else}$_G[setting][anonymoustext]{/if}" c="1">$list_b['author']</a>
                    <!--{else}-->
                        $_G[setting][anonymoustext]
                    <!--{/if}--></span></li>
                    <!--{/if}-->
                    <!--{eval $wn++}-->
                    <!--{/loop}-->
                </ul>
            </div><!--End news_refer_item-->
            <div class="cl">&nbsp;</div>
            <!--{/if}-->
        </div><!--End left_box_item-->
        <!--{/if}-->
        <!--{eval break;}-->
        <!--{/loop}--> 
        <div class="right_box_item cl">
            <ul>
            	<!--{eval $n=0}-->
            	<!--{loop $listpost_wforum[$keycat] $key $list_b}-->
                <!--{eval $n++}-->
                <!--{if $n > 1}-->
                <li>
                    <div class="author_item cl">
                        <a href="forum.php?mod=viewthread&tid=$list_b[tid]" title="$list_b[subject]" >
                        <!--{if $list_b['picatt']}-->
                            <!--{eval $keypic = rawurlencode(md5($list_b['tid'].'|100|100'))}-->
                            <img src="forum.php?mod=image&aid=$list_b['picatt']&size=100x100&key=$keypic&atid=$list_b['tid']" alt="$list_b[subject]" title="$list_b[subject]" />
                        <!--{elseif $list_b['picurl']}-->    
                            <img src="$list_b['picurl']" alt="$list_b[subject]" title="$list_b[subject]" />
                        <!--{else}-->
                            <!--{if $list_b['author']}-->
                                <!--{avatar($list_b[authorid],mid)}-->
                            <!--{else}-->
                            <img src="{IMGDIR}/frame_avatar.gif" alt="$_G[setting][anonymoustext]" title="$_G[setting][anonymoustext]" />
                            <!--{/if}-->
                        <!--{/if}-->
                        </a><!-- IMG Topic-->
                        <a href="forum.php?mod=viewthread&tid=$list_b[tid]" class="xi2" $list_b[highlight] title="$list_b[subject]">{if $cat[icon]}<img src="{$cat[icon]}" width="10" height="10"/>{else}<img src="{IMGDIR}/icon_forum_default.png" width="10" height="10"/>{/if}<h3>$list_b[subject]</h3></a>
                        <div class="author_infor">
                            <img src="{IMGDIR}/i-4.png" width="10" height="10"  align="absmiddle" />
                            <!--{if $list_b['author']}-->
                                <a href="home.php?mod=space&username=$list_b['author']" class="no_bold xg1" title="{if $list_b['author']}$list_b['author']{else}$_G[setting][anonymoustext]{/if}" c="1">$list_b['author']</a>
                            <!--{else}-->
                                $_G[setting][anonymoustext]
                            <!--{/if}-->
                            <img src="{IMGDIR}/date.png" width="10" height="10"/>
                            <i>{$list_b['dateline']}</i>              
                        </div><!--End author_infor-->
                        <p class="text_message">{$list_b['message']}</p>
                        <div class="viewer_comment_infor">
                            <span>
                                <img src="{IMGDIR}/i-3.png" width="16" height="10" align="absmiddle"/>
                                $list_b[views] {lang number_view}
                                <img src="{IMGDIR}/i-2.png" width="10" height="11" align="absmiddle"/>
                                $list_b[replies] {lang number_comment}
                                <!--{if $list_b[replies]}-->
                                -
                                    <!--{if $list_b['lastposter']}-->
                                       <img src="{IMGDIR}/i-4.png"  width="10" height="10" align="absmiddle" title="{lang number_comment}"/> <a href="{if $list_b[digest] != -2}home.php?mod=space&username=$list_b[lastposter]{else}forum.php?mod=viewthread&tid=$list_b[tid]&page={echo max(1, $list_b[pages]);}{/if}" c="1" class="no_bold xg1">$list_b[lastposter]</a>
                                    <!--{else}-->
                                        $_G[setting][anonymoustext]
                                    <!--{/if}-->
                                    <img src="{IMGDIR}/date.png" width="10" height="10"/> $list_b[lastpost]
                                <!--{/if}-->
                            </span>
                        </div><!--End viewer_comment_infor-->
                    </div><!--End author_item-->
                    <div class="cl">&nbsp;</div>
                </li>
                <!--{/if}-->
                <!--{if $n==4}-->
                <!--{eval break;}-->
                <!--{/if}-->
                <!--{/loop}-->
            </ul>
        </div><!--End right_box_item-->
    </div>
</div><!--End sangtac_box-->